<template>
    <el-select
        v-model="data.options.defaultValue"
        :disabled="data.options.disabled"
        :multiple="data.options.multiple"
        :clearable="data.options.clearable"
        :placeholder="data.options.placeholder"
        :style="{width: data.options.width}"
    >
        <el-option v-for="item in data.options.options" :key="item.value" :value="item.value" :label="data.options.showLabel?item.label:item.value"/>
    </el-select>
</template>
<script>
export default {
    name: 'BaseSelect',
    props: {
        data: {
            type: Object
        }
    }
}
</script>
